

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>layui后台管理模板 2.0</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="../../../public/layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="../../../public/css/public.css" media="all" />
	<style>
		@media(max-width: 767px){
			.layui-form-label{text-align: left; padding-left: 0;} 
			.layui-col-sm12 .layui-input-block{margin-left: 0;}
		}
	</style>
</head>

<body class="childrenBody">

<form class="layui-form article" id="editForm">

    <!--隐藏层级-->
	<input type="hidden" value="{{id}}" name="id" id="id"/>
	<input type="hidden" value="{{parentId}}" name="parentId"/>
	<input type="hidden" id="img" name="img" value="{{articlePicture}}">
	<input type="hidden" id="articleTypes" name="articleTypes" value="{{articleType}}">
	<input type="hidden" id="gg" value="{{columnId}}">


	<div class="layui-col-sm6">

		<div class="layui-form-item">
			<label class="layui-form-label">文章标题</label>
			<div class="layui-input-block">
				<input type="text" name="articleTitle" id="articleTitle" value="{{articleTitle}}" lay-verify="articleTitle|required" placeholder="请输入文章标题" autocomplete="off" class="layui-input required"  maxlength="20">
			</div>
		</div>


		<div class="layui-form-item" id="path" style="display: none">
			<label class="layui-form-label">链接地址</label>
			<div class="layui-input-block">
				<input type="text" name="articleSource" id="articleSource" value="{{articleSource}}"  placeholder="请输入链接地址" autocomplete="off" class="layui-input required" maxlength="40">
			</div>
		</div>


		<div class="layui-form-item" id="type" style="display: none">
			<label class="layui-form-label">项目分类</label>
			<div class="layui-input-block">
				<select id="articleType" name="articleType" >
					<option value="">请选择...</option>
					<option value="1">工会</option>
					<option value="2">手机端</option>
					<option value="3">学校</option>
					<option value="4">其他</option>
				</select>
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label">所属栏目</label>
			<div class="layui-input-inline">
				<select id="columnIds" name="columnIds" lay-filter="change">
					<option value="">请选择...</option>
				</select>
			</div>

			<div class="layui-input-inline">
				<select id="columnId" name="columnId">
					<option value="">请选择...</option>
				</select>
			</div>
		</div>


		<div class="layui-form-item">
			<label class="layui-form-label">发布时间</label>
			<div class="layui-input-block">
				<input  name="publishTime" id="publishTime" value="{{publishTime}}" class="layui-input searchVal" id="publishTime" placeholder="yyyy-MM-dd" readonly />
			</div>
		</div>


		<div class="layui-upload">
			<label class="layui-form-label">文章附件</label>
			<input id="upload" name="file" type="file"  style="display: none;" />
			<button type="button" class="layui-btn" id="url"><i class="layui-icon">&#xe67c;</i>添加附件</button>
			<input id="articleUrl" name="articleUrl" type="hidden" value="{{articleUrl}}">
			<span class='allUrl' style='display: none'></span>
			<div id="show" style="margin-top: 13px;margin-left: 100px;">
			</div>
		</div>

	</div>


	<div class="layui-col-sm5 layui-col-sm-offset1">

		<div class="layui-upload">
			<label class="layui-form-label">文章封面</label>
			<i><a type="button"  id="text1"><img id="previewImg" src="../../../public/images/img-def.png" style="margin-top: 1.5%;height: 200px;"></a>
				<i type="button" class="layui-icon layui-icon-close" id="dele" title="删除" lay-event="del" style="display:none;font-size: 30px !important;position: relative;top: -70px;color: #999;">&#x1007;</i></i>
			<input type="hidden" id="fileInfoId" name="fileInfoId" value=""/>
			<div class="layui-upload-list">
				<img class="layui-upload-img" id="newsPicture" style="margin-top:2%;">
				<input type="hidden" id="articlePicture" name="articlePicture" value="{{articlePicture}}"/>
				<p id="demoText"></p>
			</div>
		</div>
	</div>


	<div class="layui-col-md11 layui-col-sm12" style="margin-top: 30px;">
		<div class="layui-form-item">
			<label class="layui-form-label">文章内容</label>
			<div class="layui-input-block">
				<textarea id="articleContent" name="articleContent" style="width: 100%;height: 400px;">{{articleContent}} 此处为富文本占位</textarea>
			</div>
		</div>
	</div>

	<div class="layui-col-sm12">
		<div class="layui-form-item">
			<div class="layui-input-block">
				<a class="layui-btn"  lay-filter="btnSubmitFormDraft">保存草稿</a>
				<a class="layui-btn"  lay-filter="addSubmit" id="addSubmit">提交</a>
				<a class="layui-btn"  lay-filter="btnSubmitForm1">保存后预览</a>
				<a class="layui-btn layui-btn-primary" id="goBack">返回</a>
			</div>
		</div>
	</div>


</form>
<script type="text/javascript" src="../../../public/js/jquery.min.js"></script>
<script type="text/javascript" src="../../../public/layui/layui.js"></script>
<script type="text/javascript" src="/js/public.function.js"></script>
<script src="../../../public/plugin/ueditor/ueditor.config.js"></script>
<script src="../../../public/plugin/ueditor/ueditor.all.js"></script>
<script src="../../../public/plugin/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="form01.js"></script>


</body>
</html>